package com.wfit.controller.app;

import com.wfit.dto.CartDto;
import com.wfit.result.Result;
import com.wfit.service.AddressService;
import com.wfit.service.CartService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping("/address")
@RequiredArgsConstructor
public class AddressController {
@Autowired
private AddressService addressService;
    /**
     * 地址数据查询
     * @return
     */
    @GetMapping("/list")
    public Result addresslist() {
        Result result = addressService.getlist();

        return result;
    }


}
